﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B303Langf.Parser.AST
{
   public class CharTypeLiteral : TypeLiteral
   {
      public CharTypeLiteral( string terminal )
         : base( terminal )
      {
      }

      public override object Visit( IVisitor v, object obj )
      {
         return v.VisitCharTypeLiteral( this, obj );
      }

      public int TamValue
      {
         get
         {
            return Encoding.ASCII.GetBytes( Spelling )[ 0 ];
         }
      }
   }
}
